package com.example.locationtracking.service;

import java.util.List;

import com.example.locationtracking.model.POSTResponse;
import com.example.locationtracking.model.User;
import com.example.locationtracking.model.UserLocation;

public interface Service {
	public POSTResponse register(User user) throws Exception;
	public boolean loginPinCode(String user, String pinCode) throws Exception;
	public boolean login(String user, String password) throws Exception;
	public List<User> getUserList() throws Exception;
	public List<UserLocation> getListLocationByUser(User user) throws Exception;
	public boolean addLocation(UserLocation location) throws Exception;
	public List<UserLocation> getHistoryLocationUserList (String userName) throws Exception;
	public UserLocation getLastLocation(User user) throws Exception;
}
